also print parameter value if it is null, add test
code formatting