fixme: concurrency
fixed test
getMaxValue