Added tests and completed function for getting all paths