added a test class by bonaliza