refactor unit spec for pairing page view