fixed integration tests; fixed Link and Vary headers for 400 errors in TimeGates