Added tests for inheritance