helper/schema: test for empty state
terraform: Add more tests for cases we felt weren't well covered