Add tests for method pattern