Temporarily removed the test folder from the build (lol i will bring it back sometime for sure)
Added templates to help with downcasting event args and entities. Moved related exceptions into them to clean up code.