#479, #472 web API: instead of undefined, returning null values; fixed all the tests;