Fixed unit test and moved code coverage back to 100%