Ernst layer service

fixes tests, one bug in vector-service and jshint