Move GenericExample to unit test