Add tests for Variable#rep.  Close #16