Add unit tests for game controller