Update databaseUnitTesting.js

Added unit testing