fixed unit test and updated readme with correct examples