refactor the test
add test coverage
add parsing the cards