adding card js tests