Add unit test for validation warning popup