Fix sql tests

- updates entity type syntax
- better check for no errors