add test to ensure regression of #127 does not happen in the future