improve error handling
add lib directory to test task libs