Mocks encoder and decoder for game test