Added tests and an example for the readme file