Add ability to mock constructor functions
Dry up stub attachment