Some basic tests and documentation