implemented promise & removed setTimeout from practice controller.
Merge pull request #7 from torifat/test/e2e

Implemented promise & removed setTimeout from path controller.