A woman accused of sending a bomb threat to Buckingham Palace is to undergo a psychiatric assessment before standing trial.