Fixed jUnit test 4

Also removed a few warnings and improved exception details for sphere
map builder.