Fixes trialObject Methods test.
Cleans up linting of test and api files.