added unit test for modal view