Encapsulate assertion functionality into Test class