tidying tools#update tests to use context and before statement, adding tool factory