Testing with sharing of contexts