How to unit test code marked as (:background) in a Datafield project?

Is there any way to unit test a class marked with (:background) in a Datafield project without receiving permissions errors.

This class that I want to test has references to constants from modules that are not allowed to be accessed in a datafield app, but can be accessed in a background service delegate.