Add testing for the game

I feel we should be splitting these per target JS file, much like we do with the backend – but let's keep it for now.