Added first and last transforms. Cleaned up integration tests.