We unit test now

Fixed a plethora of bugs, all unit tests pass now