some unit tests for LSCs

plus some bugfixes