added test mode 1 infrastructure