adding tests for encoded username and password