Finished the unit tests

Fixed some serious errors I had in multiple tests (mostly the
passabillity test, which didn't even work).