login through API and test different function calls