debugged first set of test and libs