tests for junction direction