added tests for correct handling of different types in a condition