function test for create game with persistence