Create RatingDBTest.php

Simple unit tests to validate behavior.