Fixed unit tests (and made sure startup works)

We were passing a [short] for the type [bytes] instead of [int] for the
length in the query value example.