test add/retrieve entry