Fixed problem with submitting form by input[type=image]

fix wrong test.