fix STDOUT & STDERR constants at web, fix tests