fixed bug of using asynchrous data. updated test spec.