Added api testing to units