def test_identifier(recipe):
    """Test recipe identifier for proper construction.
    Args:
        recipe: Recipe object.

    Returns:
        Tuple of Bool: Failure or success, and a string describing the
        test and result.
    """
    name = recipe["Input"].get("NAME")
    if name:
        # The identifier may not have spaces.
        name = name.replace(" ", "")
    description = ("Recipe identifier follows convention. "
                   "('com.github.novaksam.jss.%s')" % name)
    result = False

    identifier = recipe.get("Identifier")
    if identifier and name:
        if (str(identifier).startswith("com.github.novaksam.jss.") and
            str(identifier).rsplit(".", 1)[1].startswith(name)):
            result = True

    return (result, description)