Added varnamc tests

This also closes #41