Add function test for cards and users