Fix: returning promise instead deferred from async functions
Clear arrays tests