[Bug #6979] Checks if alias manager was disposed before. Test added.