Basic testing &control of petroleum well