fix pyramid import in unit test which should not be there