Moved variables inside the Feaxures class
Refactored tests to use the promises returned by the library