now writing tests