Added unit tests for variant.