Improved test coverage

I think each expect should probably be in it's own "it" block and the IP assignment moved to a before block in the context but not really sure.