Added beginsWith tests