tests: renamed @assertCode to @httpCode and Assert::throws() to exception()