I know they don't work in Psychic Terrain, but do they affect Upper Hand?
Upper Hand has a priority of +3. If the target has selected a physical or special move with increased priority from +1 to +3 and has not yet had a chance to execute its move, Upper Hand will strike first and cause the target to flinch; otherwise, Upper Hand will fail. It also works on Abilities that give priority to moves, such as Gale Wings.
Source
Prankster is an ability that increases the priority of status moves by +1, so Upper Hand will not work if a Pokemon with Prankster uses a status move.