rewrite local_test as spec