Adding jenkins tests for batch registration and replace flag.