added test cases for writing and added items

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>
the engine can now add events. also made a testcase.

still needs more testing though

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>