write unit test for config configuration in search controller