Javascript tests added for database cache