added tests and readme