Unify used assertions chains.
Added: tests for applications middleware.