Add tests for task
- Detecting type, e.g. replication
- Detecting replication ID also as prefix only