add API and remote tests