added tests and readme file