fixed modal popup unit tests