Add test case to verify our understanding of mod/ref

See #47.