fixed compilation error when async use future with type parameters and added appropriative test.