Added tests for end-to-end scenario including reward reporting & offline optimization. However, the latter 2 parts may be removed for v0 in which case the tests will need to be updated. This test should also cover any GC bugs.