Added tests for rule task process