Fix minor problem in purchases rollback
Update purchase tests
Merge branch 'develop' of https://github.com/conwetlab/wstore into develop