Tests

You probably also don't need to read this as it's mostly automatically generated using the karma tool and then modified a bit by me.