implemented some tests