rewrote test