nab77's unit tests added