Adds port stubs for api testing.