ioc stuff and jasmine tests