Worst way of writing tests