Identifying the Factors Influencing HIV Testing and Safe Sex Practices: An Ecological Approach