improve selenium testing