added sync and async tests