written some tests