rename OS.choose_os to OS.host_os
added coverage in Device for #close, #write, and #play