adds test for #227