Added tests for the If-task