Fixed errors occurring during random execution of test methods in VersionedRedployTest and BasicActivities20Test