Exception class wasn't included properly. Added tests
changed required php version