Add test coverage for destroy, detach, getElement and getOption(s).