Refactoring tests so that the accept cases are separated into two different tests

This PR separates the accept test cases into two different tests, by using the [Testing Exceptions](http://www.phpunit.de/manual/3.2/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.exceptions.examples.ExceptionTest.php) feature of PHPUnit.