Added test case. Corrected return values in README.