Tests and set default charset for DB