Added tests for promise, functor and type traits