test: fix crash