added coverage to sample code