ServiceRecord Tests

Added the service record tests and removed some unnecessary code in the
constructor of the ServiceRecord class