Move test cases for controller resolver to separated class.