added test to address bug