add test for adding a method at runtime