added tests for getLatest