Replace deprecated methods with new ones.
Add unit test for chained promises.
Variable for chained promises test.
Merge pull request #2 from vadimrostok/fix-operation-on-thens-promise

Fix operations on .then's promises: replace deprecated methods