Refactored tests using jasmine-node done().