Added spec to cover resolving a non-registered class with dependencies