Automated testing & inversion of control