added parallel test code