Upward and Quasi-Upward Planarity Testing of Embedded Mixed Graphs