implemented isParallel() with unit tests