added unit tests for Card model