fixed the unit test
more documentation