Build binary each test.

test.sh builds the binary before calling go test so that the tests run
with the current code. Resolves problem caused by
commit a4b336bdba243cf6163073492ef51582aa58542e

Had to separate the build part of @all into a separate script.