You're right - the pension which people contribute to, based on the higher PRSI payments, is not means tested while the other one (I'm not sure what it's called) is a basic pension for those without other income. It is means tested.
In the case of the first, you could have a substantial privately funded pension, yet still be eligible for the state pension and it wouldn't be means tested. Hope that's not too confusing.
That's where civil and public servants lost out in a way. They did not get the state non means tested pension because they only paid the lower rate of PRSI and had no option on this. Of course their pensions were/are index linked so maybe it balances out. In recent years, AFAIK, State employees now pay full PRSI.
8)