more unit tests

PHP’s type system sucks…