added initUser methods in test class