added phpunit tests from tiki, added events class
Tables working