Add more tests of generate_methods

This patch adds a test for the inharited and nested API handler.

Change-Id: Ia0a645d0743ae9a47efec1adc4583ff3dc6e15d6
Signed-off-by: Taku Fukushima <tfukushima@midokura.com>