tests for Before/After ordering