fixes to selenium tests