Fixed scrolling lines up.
Fixed tests data.
Added missing break.
Clear back buffer on switching to alternate buffer and back.
Insert lines implemented.