added tests and autotools