added tests
added purchase share