Added a new unit test file and wrote a new unit test
Implemented the functionality tested in the first test ing onJoinGame.spec.js