Unit tests for View