Add unit tests for automatic actions