refactor(tests): Use table-driven testing for units resource
feat(API): Add safety to unit deletion
feat(API): Add safety to unit modification
doc(API): Document 404 on nonexistent unit