Fix tests not passing, fix man page.
Adding two unit tests.