container to return null if $id is not set nor a class name to forge.
fixed test as well.