Added unit tests for cards collection on the server side