Test + working version of function store()