Enable STDIN, remove file attributes, update tests.