putting in place tests for deletion and helper functions