MYLOC-45 Further inor improvements

Constructor does not error when there is no options argument.
'details' renamed to 'detailTypes'
Added extra constructor tests for env and domain options.