singleton must not wrap a null factory
fix argument assertion for 'set'
add dependency-builder tests