Mixing of neutral charmed mesons and tests for CP violation in their decays