Add tests for #47