Add tests for destroy and dialog public methods