add tests for /accounts/apply/ and related alerts.