check that for max threads
add set_nthreads test
extra checks for compress input
throw custom BloscError's with return codes