Added test for preview on edit