added tests to variation.t #2788