tests all failing, despite what the code says