Run tests both in dev and prod modes

With this PR we can run the tests both with build.js and the non-minified scripts. `make test` runs the tests against the non-minified scripts, so it should be used for development. And Travis runs both the development and production tests.

Please review.