Code style fixes
Adds test for map views