Why no unit tests for all this code?