Added .each function to modify a number of methods at once
Fixed a bug which was causing unit tests to fail