Move TestPath to libs
Add library tests