added tests on AspectRatioService and fixed a bug on side band detection