Improved parameterless method test