implement tests
add exception handle for empty cards list
slight modification and remove obsoleted funcs
change args to pytest
change card 'T' to '10'
Merge pull request #9 from my-zhang/develop

add tests