Adding test for code-field content before make search