Add setBasePath() method
Add spec case for setBasePath() method