Unittest for time-dependent variational midpoint.