added test for correct static inheritance