Add tests for vector layer