added tests for Card