Test different ways to dynamically generate methods