incapsulation for tests