Add tests for maps in if-conditions