ml tests and libs