Update test.py with all test cases. Update README.rst with full API details