make demo should be part of the test suite

make demo NODE_ENV=test will run as test
   by default runs as development
make test will run everything in test directory with test env
more resilient login util, report registration error earlier