Checks if a class has proper parents
Added extend class tests