Added test for get_detail functionality