fix failing tests for nullref exception by getting rid of stringparam reference in method