Small enhancement in accounts-base

Use the `check` function in the `accounts-base` package.
Unit tests remain unchanged.