adding tests for searchCodeControllr