Add test for the prototype of get_code_location