Decouple user_pages tests from implementation