viewport edit unit tests