added tests for basepath construction