Fixed the variant tests
Added documentation