InvalidHandler and SubmitHandler tests