Write unit tests for DBBackedQueue