replace src with store; add tests