Add sync and async tests