Added tests and updated readme file.