LPS-47986 Encapsulate test methods in test contexts