add systemmenu class and test code