refactor(tests): Use table-driven testing for units resource