Updated spec tests to test cert filename parameter when provided