Fixed test and added method to expose internal database types