add junit test for issue 44