Refactoring tests
Tests for key deletion