fixed bug in base-test, certificate in client-test

Also added default account into database for initial setup.