added tests for xreject, worked on flip tests