added test cases for schema inheritance
added fix for schema inheritance
Merge pull request #830 from cameronbc/bug

Test and fix for schema inheritance bug