Added Database Functions unit tests