Write tests for user_detail and card_info