Fixed so relative pathing will work, added some tests