Tests on generating code for NSG portal