added tests and updated version