Get src/main and src/test compiling

I don't think this method is used and is probably incorrect anyways. Can we delete it?