Cleanup constants for invalid object names
Add view tests for unknown schema