Rewritten tests from scratch. Split them in files.