Fixed a failing unit test and a stupid string format error