encapsulated test