remove dependence of implementation details from test