rustpkg: Fix do listeners and support custom test logic