Initial unit tests for cleardep

No extra features or bugfixes jet