Refactor uPortal json unit test