updated tests to use in-memory db to mock so the tests start quicker
fixed jshint. Run "grunt jshint" to see possible errors