Sample test Success.

Add rootscope to the factory for enter into the digest cycle for promise.