fixed the failing unit test for #288