fixed junctions and added test cases