removed warnings from build

Fixed a few warnings about white space and dead code
I have managed to reproduce the error. The problem is that the `name` field of the struct is not used when testing. Could you add a comment stating this? Otherwise someone may think that this `#[allow(dead_code)]` is a mistake.