Added test to make sure inheritsFrom checks the contextual obj