Added controller tests for validation