Added unit tests, fixed typo in README.md and added section in README.md about running unit tests