Add test for variant

Several tests still remain to be filled out before it will be considered
feature complete.