functions inheritance tests