Got rid of function, made tests run automatically