implemented delete and a simple test