providing unit tests and javadoc for new methods in stats controller