Add function test for test poker function