refactoring tests into sections
reworking wait function to make room for a new wait overload
adding refresh method and wait for fn on page refresh