more tests for population and fitness and fixed some bugs