[test] move resolve to seperate helpers module