adding unit test for #27 fix