Fixed front stats bugs. Added additional test for it.