Tests and documenation