added tests for inheritance