BugFix: Error when expecting an object to have an attribute