Use test to invoke method of source code