added tests for bidirectional preprocessing