re added test mode