Emulate 'user' command (#17).
Emulate 'user STAT' command (#17).
Refactor tests.