added phpunit tests, added new delivery exception for not authorized
delivery requests