Make injection and singleton scope thread safe
Make use of count parameter in TestThreadSafety as intended
Merge pull request #9 from jstasiak/master

Make injection and singleton scope thread safe.