fix bug where modal is hidden after 2nd load

Also fix modal positioning tests which were silently failing to test anything since mockup-base refactor