moved averageLevel method to BaselineProfilesList and added unit test