added tests for beNil and beNonNil

Just a start, doesn't prove that #312 aren't failing.

Has to be done on a higher level