fixed failing tests and added test for adding/removing from lib search paths.