run synchronously in test