The effect of endogenously-determined bullying on test scores