tests for #336 so this doesn't happen again