Add flag assertions.
Add stdin assertions.