Add several unit tests for the applicability query API.