Initial commit of Marketplace purchase app tests

Throwing this out for open collaboration between @vaidik and anyone else who can help out.