Refactor tests
Refactor/Clean dabatase.delete_credential