Fix getProperty() test helper method. Remove getMethod() which is useless, prefer invokeMethod().
Add more tests for ControllerResource class.