sLDA: example, tests and fixes