tests: reorganized StubTest
tests: added new test cases to StubTest suite