added mutex testing, not tested