Fixes unit tests and removes unnecessary 'ref' parameter access modifiers.