Add tests for #2603 - sparse variation data