Wrote almost all of test