selenium tests fixes