api test + selenium test fix