Prepared environment for server code tests.
Fixed: npm test command to work with --coverage flag
Added: Collection tests