Changed default port due to issues with nix systems

I.e., non root users can't start services below port 1000
Added check for test environment