added writer test, signature still needs change since it returns a future[future[int]]