Get username, password, apikey functions and tests