import nbytes in tests