added tests; test coverage is now at 100% python code.