Update test.php

Cleaned printChart code up
Fixed getActivity from Trakt API