fix random tests
add specs