Implement a simple in-memory key-value storage system that allows storing, retrieving, and deleting key-value pairs. The system should be encapsulated in a class named KeyValueStore. The following functionalities must be supported:
Store a Value: Implement a method called set(key: str, value: Any) -> None that accepts a key as a string and a value of any type. This method should store the key-value pair in the storage.
Retrieve a Value: Implement a method called get(key: str) -> Optional[Any] that accepts a key as a string and returns the value associated with that key. If the key does not exist, it should return None.
Delete a Key-Value Pair: Implement a method called delete(key: str) -> None that accepts a key as a string and removes the key-value pair from the storage. If the key does not exist, it should have no effect.
Check Existence of Key: Implement a method called exists(key: str) -> bool that returns True if the key exists in the storage, and False otherwise.
Implementation Requirements
The KeyValueStore class should be located in the /app/ directory.
Ensure that the methods handle edge cases, such as setting or getting None as a key or value correctly.
The implementation should not use any external libraries and must be efficient in terms of time complexity for the operations (O(1) for set, get, and delete).
Make sure to write additional unit tests in a separate test file to verify edge cases and ensure the reliability of your implementation. These tests should cover scenarios such as overwriting existing keys, deleting non-existent keys, and checking the existence of keys after performing operations.