using test method injection to override class field with method parameter