added more tests and fixed path catenation