Completed hasNoSharesTest() and replaceWithTest()