Database singleton getInstance method and test