Fix - Undefined variable: method
Merge pull request #18 from andypost/testable

Fix - Undefined variable: method