Brownian dynamics simulations of reversible reactions in one dimension