Added tests and example for Rating component