Added tests for variant.