Service class tests