added library specified exception types
fixed exception message
added phpunit as dev requirement
added the first testcases
added library specified exception types