Added test for bug fixed by @jkieley