testing the get cards function