Wrote tests for NetworkPreparer and made some small changes to the utils
package.