added execption test
added prepare tests and logic; changed min perl version