Refactor test 983 to prepare for inclusion in CTS

In order for test 983 to be included in CTS we needed to make changes
to remove its custom Agent_OnLoad and ensure that all printing is done
through System.out.

Test: ./test.py --host -j50
Bug: 73252141
Change-Id: If18e58305a1a4dd7d915fabfbacbe95c8212e801
5 files changed