wrote some tests