good practice to explicitly define present value
Added missing default value for API hostname and added rspec tests