Improvements to test API, consistency fixes to tests, switch out default user passwords for random passwords