fixing testInvalidDependency unit test
Change reflectCallable to a static method
refactored to not have arrayaccess (for now anyway)