fixed tests + dist generation