wrote unit tests for lives and performance bar