fix unit tests
move poker related stuff to library