Optimized test_bijective to use setup