tests for slug validation