added test helpers and started using them for testing simple online stack