Fixed tests. Refactored get project base path