Unit tests for #47