Adding HSQL DB to be used in tests
Some fixes to UploadAvatarTest and UploadMediaTest