fixed a bug with busyThreadsCount and added more tests