added async and retrieve metadata tests