Fixed failing unit test, fixed a typo