Mocked tests refactored, added InternalsVisibleTo atrributes for testing internals