added tests; before dealing with bug #11
#11 - wrong class returned from methods on inner objects