fix userId tests so they work deterministically and under automated settings; closes #35