api: Add test coverage for registration.
api: Fix error on drinks/ on empty system.

Closes #233.