fix libs and add a new tests and libs.