added tests for `endpoint`
added `clean` tests