Add missing validations to track
Add stubs for testing validations
Add missing validations for permission model
Improve test coverage
Fix whitespace inconsistencies