refactors the card.js tests
refactors activity.js integration tests
Merge pull request #644 from zachgersh/integration_activityjs

refactors activity.js integration tests
Merge pull request #645 from zachgersh/integration_cardjs

refactors the card.js tests