Add tests for subscription and transaction model