Added unit test code for registering a user and added deleteall and close function to dbfunk.js