Added test for triple_buffer.
Fixed indexing error in triple_buffer.
Authored by: crowbar27 2014-06-19
Parent: [r596]
Child: [r598]