Added test for searching by code_name