test get_contents