tty: align TestTty init signature with PosixTty
TestTty init function was missing the buffer parameter that PosixTty
requires. Update TestTty.init to accept a buffer: []u8 parameter to
match the consistent interface pattern used by PosixTty.
This ensures both TTY implementations have compatible initialization
signatures for polymorphic usage.
Amp-Thread-ID: https://ampcode.com/threads/T-970f3138-9911-4509-9c12-cd008b09aa0d
Co-authored-by: Amp <amp@ampcode.com>