Testability facilities for client code