Issue #48 Added scopeFactory tests.
Issue #48 Added more ITs, fixed small issues.