tests: Fix logic when testing for empty state set