Tests from documentation examples