Add tests for static inheritance