Fixes failing unit test