added some further unittests, changed some formal param. types from Long to long, put some bulk operations into transaction