Learn about tests used to diagnose sleep disorders and treatments that can help, from home remedies to prescription medications.