making tests pass and parameter sweeper