adding midway tests