Changed the build workflow: build and tests are called separately; tests can be called with chrome and with phantomjs