veyron/lib/modules: fix bug in queue rw implementation and add unit test.

Bug: I forgot to shift the buffer upon consuming data from it, so it kept
reading from the beginning.

Should fix http://go/vissues/430.

Change-Id: I4a8fce8f20e10484e271abd2a9e25c158c2bb33b
diff --git a/lib/modules/only_for_test.go b/lib/modules/only_for_test.go
new file mode 100644
index 0000000..8f3143a
--- /dev/null
+++ b/lib/modules/only_for_test.go
@@ -0,0 +1,8 @@
+package modules
+
+import "io"
+
+// NewRW exposes newRW for unit tests.
+func NewRW() io.ReadWriteCloser {
+	return newRW()
+}