Refactor fix for rack test methods