Store function + basic test.