rename directory src to lib
Refactor tests