some fixes in js code - now test passed if no value was retutned from test function; console output now writes to log file; added first check method in adapter