Add a test for the cleanup api using a sub sharness