Fixed npm test task and added chai as dev-dep