Allow start.sh command line to override NODE_ENV
Reworked unit tests.